home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
AMIGA PD 1
/
AMIGA-PD-1.iso
/
NetBSD
/
docs-netbsd
/
Mailinglist-Archive
/
1994-10.gz
/
1994-10
/
000463_owner-current-users@netbsd.org_Wed Oct 19 06:20:47 1994.msg
< prev
next >
Wrap
Text File
|
1994-11-20
|
899b
|
29 lines
From: mycroft@gnu.ai.mit.edu
To: current-users@netbsd.org
Subject: File system problems
Sender: owner-current-users@netbsd.org
These are definitely caused by (a?) bogus ftruncate() or lseek() call
that has the wrong type for the second argument. Often this causes
random garbage to be passed in the upper 32 bits of the offset. This,
combined with a major bug I just located in FFS, is almost certainly
what's been trashing a few people's file system.
I'd suggest, for now, changing the test at the top of ffs_truncate()
from:
if (length < 0)
return (EINVAL);
to:
if (length < 0 || length > 0xffffffffLL)
return (EINVAL);
and putting a similar test in ufs_seek(). This will alleviate the
symptoms until the problem is fixed correctly.
I'd also suggest finding and *fixing* the bad calls in whatever 3rd
party programs you are using.